home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Periodicals / develop / develop Issues 1-3 / develop Issue 2 code / Speed Development / DemoDialogs.r < prev    next >
Encoding:
Text File  |  1990-02-26  |  44.1 KB  |  1,439 lines  |  [TEXT/MPS ]

  1. /* Copyright © 1988-1990 Apple Computer, Inc.  All rights reserved. */
  2.  
  3. /* • Auto-Include the requirements for this source */
  4. #ifndef __TYPES.R__
  5. #include "Types.r"
  6. #endif
  7.  
  8. #ifndef __MacAppTypes__
  9. #include "MacAppTypes.r"
  10. #endif
  11.  
  12. #if qTemplateViews
  13. #ifndef __ViewTypes__
  14. #include "ViewTypes.r"
  15. #endif
  16. #endif
  17.  
  18. #if qDebug
  19. include "Debug.rsrc";
  20. #endif
  21. include "MacApp.rsrc";
  22. include "Dialog.rsrc";
  23.  
  24. include $$Shell("ObjApp")"DemoDialogs" 'CODE';
  25.  
  26. /* Resource IDs */
  27.  
  28. #define kTestIcon            1000
  29. #define kTestPopup             235
  30. #define kBaudPopup             236
  31. #define kParityPopup         237
  32. #define kTestPicture        1000
  33. #define kTestStrings        1000
  34. #define kCalcPicture        1009
  35.  
  36. /* Command numbers */
  37.  
  38. #define cProcedureViews        1001
  39. #define cTemplateViews        1002
  40. #define cMonthlyDialog        1003
  41. #define cSaveDialog            1004
  42. #define    cMarkDialog            1005
  43. #define cPageSetupDialog    1006
  44. #define cHomeBrewControls    1007
  45. #define cTabbingTest        1008
  46. #define cCalculator            1009
  47. #define cScrollingTest        1011
  48. #define cFormatDialog        1012
  49. #define cModelessMarkDialog    1013
  50. #define cPopupExample        1100
  51. #define cCluster            1101
  52.  
  53. resource 'seg!' (256, purgeable) {
  54.     {
  55.         "GOpen";
  56.         "GClose";
  57.         "GNonRes";
  58.         "GSelCommand";
  59.         "GDoCommand"
  60.     }
  61. };
  62.  
  63. resource 'SIZE' (-1) {
  64.     dontSaveScreen,
  65.     acceptSuspendResumeEvents,
  66.     enableOptionSwitch,
  67.     canBackground,
  68.     MultiFinderAware,
  69.     backgroundAndForeground,
  70.     dontGetFrontClicks,
  71.     ignoreChildDiedEvents,
  72.     is32BitCompatible,
  73.     reserved,
  74.     reserved,
  75.     reserved,
  76.     reserved,
  77.     reserved,
  78.     reserved,
  79.     reserved,
  80. #if qDebug
  81.     500 * 1024,
  82.     400 * 1024
  83. #else
  84.     290 * 1024,
  85.     218 * 1024
  86. #endif
  87. };
  88.  
  89. resource 'DITL' (phAboutApp, purgeable) {
  90.      {
  91. /* [1] */    {160, 182, 180, 262}, Button { enabled, "OK" };
  92. /* [2] */    {8, 70, 152, 316}, StaticText { disabled, 
  93.     "This program has several examples of MacApp dialogs." 
  94.     "\n\nThis program was written "
  95.     "with MacApp® © 1985-1990 Apple Computer, Inc."};
  96. /* [3] */    {10, 20, 42, 52}, Icon { disabled, 1 }
  97.     }
  98. };
  99.  
  100. resource 'ALRT' (1000, purgeable) {
  101.     {44, 48, 130, 358},
  102.     1000,
  103.     {
  104.         OK, visible, sound1,
  105.         OK, visible, sound1,
  106.         OK, visible, sound1,
  107.         OK, visible, sound1
  108.     }
  109. };
  110.  
  111. include "Defaults.rsrc"  'ALRT' (phAboutApp);    // Grab the default about box
  112.  
  113. include "Defaults.rsrc" 'cmnu' (mApple);        // Grab the default Apple menu
  114.  
  115. resource 'cmnu' (mFile) {
  116.     mFile,
  117.     textMenuProc,
  118.     0x7FFFFBBB,
  119.     enabled,
  120.     "File",
  121.      {
  122. /* [1] */    "Quit",        noIcon, "Q",    noMark, plain, cQuit
  123.     }
  124. };
  125.  
  126. include "Defaults.rsrc" 'cmnu' (mEdit);        // Grab the default Edit menus
  127.  
  128. resource 'cmnu' (4) {
  129.     4,
  130.     textMenuProc,
  131.     0x7FFFFFBD,
  132.     enabled,
  133.     "Dialogs",
  134.      {
  135. /* [1] */    "Views by Procedures",        noIcon, noKey, noMark, plain, cProcedureViews;
  136. /* [2] */    "Views by Templates",        noIcon, noKey, noMark, plain, cTemplateViews;
  137. /* [3] */    "Side-by-Side Scrolling",    noIcon, noKey, noMark, plain, cScrollingTest;
  138. /* [4] */    "Monthly Values Dialog",    noIcon, noKey, noMark, plain, cMonthlyDialog;
  139. /* [5] */    "Save Dialog",                noIcon, noKey, noMark, plain, cSaveDialog;
  140. /* [6] */    "Mark Dialog",                noIcon, noKey, nomark, plain, cMarkDialog;
  141. /* [6] */    "Modeless Mark Dialog",        noIcon, noKey, nomark, plain, cModelessMarkDialog;
  142. /* [7] */    "Page Setup Dialog",        noIcon, noKey, nomark, plain, cPageSetupDialog;
  143. /* [8] */    "Format Dialog",            noIcon, noKey, nomark, plain, cFormatDialog;
  144. /* [9] */    "Home Brew Controls",        noIcon, noKey, nomark, plain, cHomeBrewControls;
  145. /* [10] */    "Tabbing Test",                noIcon, noKey, nomark, plain, cTabbingTest;
  146. /* [11] */    "Calculator Test",            noIcon, noKey, noMark, plain, cCalculator
  147.     }
  148. };
  149.  
  150. include "Defaults.rsrc" 'cmnu' (mBuzzwords);    // Get the default buzzwords menu
  151.  
  152. resource 'cmnu' (kTestPopup) {
  153.     kTestPopup,
  154.     textMenuProc,
  155.     allEnabled,
  156.     enabled,
  157.     "Popup:",
  158.     {
  159. /* [1] */    "Item 1",     noIcon, "", "", plain, nocommand;
  160. /* [2] */    "Item 2",     noIcon, "", "", plain, nocommand;
  161. /* [3] */    "Item 3",     noIcon, "", "", plain, nocommand;
  162. /* [4] */    "Item 4",     noIcon, "", "", plain, nocommand;
  163. /* [5] */    "Item 5",     noIcon, "", "", plain, nocommand;
  164. /* [6] */    "Item 6",     noIcon, "", "", plain, nocommand;
  165. /* [7] */    "Item 7",     noIcon, "", "", plain, nocommand;
  166. /* [8] */    "Item 8",     noIcon, "", "", plain, nocommand
  167.     }
  168. };
  169.  
  170. resource 'mctb' (kTestPopup) { {
  171.         kTestPopup, 0,
  172.         {
  173.         0x9999, 0x0000, 0x9999;            /* title color */
  174.         0xFFFF, 0x6666, 0x0000;            /* "menu bar" color */
  175.         0x0000, 0x6666, 0xFFFF;            /* default item color */
  176.         0xFFFF, 0xFFFF, 0x0000            /* default menu background color */
  177.         };
  178.  
  179.         kTestPopup, 3,
  180.         {
  181.         0xFFFF, 0x0000, 0x0000;            /* mark color */
  182.         0xFFFF, 0x0000, 0x0000;            /* name color */
  183.         0xFFFF, 0x0000, 0x0000;            /* command Key color */
  184.         0xFFFF, 0xFFFF, 0xFFFF            /* NFG!!! */
  185.         }
  186. } };
  187.  
  188. resource 'cmnu' (kBaudPopup) {
  189.     kBaudPopup,
  190.     textMenuProc,
  191.     allEnabled,
  192.     enabled,
  193.     "Baud:",
  194.     {
  195. /* [1] */    "110",     noIcon, "", "", plain, nocommand;
  196. /* [2] */    "300",     noIcon, "", "", plain, nocommand;
  197. /* [3] */    "600",     noIcon, "", "", plain, nocommand;
  198. /* [4] */    "1200",     noIcon, "", "", plain, nocommand
  199.     }
  200. };
  201.  
  202. resource 'cmnu' (kParityPopup) {
  203.     kParityPopup,
  204.     textMenuProc,
  205.     allEnabled,
  206.     enabled,
  207.     "Parity:",
  208.     {
  209. /* [1] */    "Even",     noIcon, "", "", plain, nocommand;
  210. /* [2] */    "Odd",     noIcon, "", "", plain, nocommand;
  211. /* [3] */    "No",     noIcon, "", "", plain, nocommand
  212.     }
  213. };
  214.  
  215. resource 'MBAR' (kMBarDisplayed) { {mApple; mFile; mEdit; 4} };
  216.  
  217. resource 'MBAR' (kMBarNotDisplayed) { {kTestPopup; kBaudPopup; kParityPopup} };
  218.  
  219. resource 'STR#' (kTestStrings, purgeable) { {
  220.     "Scroll me vertically…\n\n(P.S. This should read 'PARAM0': ^0\nThis should read 'PARAM1': ^1\nThis should read 'PARAM0': ^0)";
  221.     "A static string"
  222. } };
  223.  
  224. /************************************************************************************/
  225. /*    Views by procedure                                                                */
  226. /************************************************************************************/
  227. resource 'WIND' (cProcedureViews, purgeable) {
  228.     {50, 20, 310, 450}, zoomDocProc, invisible, goAway, 0x0, "Views by Procedure"
  229. };
  230.  
  231. /************************************************************************************/
  232. /*    Views by template                                                                */
  233. /************************************************************************************/
  234. resource 'view' (cCluster, purgeable) {
  235.     {
  236.         root, 'TCls', {0, 0}, { 190, 150 }, sizeFixed, sizeFixed, shown, disabled,
  237.         Cluster {
  238.             "",
  239.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  240.                 noInset, systemFont,
  241.             "A Cluster!" };
  242.  
  243.         'TCls', 'PRad', { 20, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  244.         Radio {
  245.             "",
  246.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  247.                 noInset, systemFont,
  248.             on, "Plain" };
  249.  
  250.         'TCls', 'BRad', { 40, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  251.         Radio {
  252.             "",
  253.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  254.                 noInset, bold, 12, black, "",
  255.             off, "Bold" };
  256.  
  257.         'TCls', 'IRad', { 60, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  258.         Radio {
  259.             "",
  260.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  261.                 noInset, italic, 12, black, "",
  262.             off, "Italic" };
  263.  
  264.         'TCls', 'URad', { 80, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  265.         Radio {
  266.             "",
  267.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  268.                 noInset, underline, 12, black, "",
  269.             off, "Underline" };
  270.  
  271.         'TCls', 'ORad', { 100, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  272.         Radio {
  273.             "",
  274.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  275.                 noInset, outline, 12, black, "",
  276.             off, "Outline" };
  277.  
  278.         'TCls', 'SRad', { 120, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  279.         Radio {
  280.             "",
  281.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  282.                 noInset, shadow, 12, black, "",
  283.             off, "Shadow" };
  284.  
  285.         'TCls', 'CRad', { 140, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  286.         Radio {
  287.             "",
  288.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  289.                 noInset, condense, 12, black, "",
  290.             off, "Condense" };
  291.  
  292.         'TCls', 'ERad', { 160, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  293.         Radio {
  294.             "",
  295.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  296.                 noInset, extend, 12, black, "",
  297.             off, "Extend" };
  298.     }
  299. };
  300.  
  301.  
  302. resource 'view' (cTemplateViews, purgeable) {
  303.     {
  304.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  305.         Window {
  306.             "",
  307.                 zoomDocProc, goAwayBox, resizable, modeless, doFirstClick,
  308.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  309.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'DLOG',
  310.                 "Views by Template" };
  311.  
  312.         'WIND', 'SCLR',    { 0, 0 }, { 260-kSBarSizeMinus1, 430-kSBarSizeMinus1 },
  313.         sizeRelSuperView, sizeRelSuperView, shown, enabled,
  314.         Scroller {
  315.             "",
  316.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  317.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  318.  
  319.         'SCLR', 'DLOG',    { 0, 0 }, { 900, 480 },
  320.         sizeFixed, sizeFixed, shown, enabled,
  321.         DialogView { "", noID, noID };
  322.  
  323.         'DLOG', IncludeViewsAt { cCluster, { 340, 100 } };
  324.  
  325.         'DLOG', noID, { 100, 50 }, { 150, 300 }, sizeFixed, sizeFixed, shown, disabled,
  326.         StaticText {
  327.             "",
  328.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  329.                 noInset, italic, 12, {0, 0, 0xFFFF}, "a",
  330.             justCenter, "Scroll me vertically…\n\n(P.S. This should read 'PARAM0': ^0\nThis should read 'PARAM1': ^1\nThis should read 'PARAM0': ^0)" };
  331.  
  332.         'DLOG', noID, { 540, 100 }, { 20, 100 }, sizeFixed, sizeFixed, shown, enabled,
  333.         CheckBox {
  334.             "",
  335.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  336.                 noInset, applFont12,
  337.             off, "Check Box" };
  338.  
  339.         'DLOG', noID,    { 540, 270 }, { 28, 100 }, sizeFixed, sizeFixed, shown, enabled,
  340.         Button {
  341.             "",
  342.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, doesntDismiss,
  343.                 { 4, 4, 4, 4 }, plain, 10, {0, 0, 0}, "a",
  344.             "Push Button" };
  345.  
  346.         'DLOG', noID, { 570, 130 }, { 35, 35 }, sizeFixed, sizeFixed, shown, enabled,
  347.         Icon {
  348.             "",
  349.                 adnFrame+adnShadow, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  350.                 { 1, 1, 1, 1 }, systemFont,
  351.             preferColor, kTestIcon };
  352.  
  353.         'DLOG', noID, { 660, 100 }, { 0x18C-0xF0+16, 0x12C-0x8F+16 },
  354.         sizeFixed, sizeFixed, shown, enabled,
  355.         Picture {
  356.             "",
  357.                 adnRRect+adnShadow, {2, 2}, sizeable, notDimmed, notHilited, doesntDismiss,
  358.                 { 8, 8, 8, 8 }, systemFont,
  359.             kTestPicture };
  360.  
  361.         'DLOG', noID, { 620, 20 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  362.         StaticText {
  363.             "",
  364.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  365.                 noInset, plain, 12, {0xFFFF, 0, 0}, "",
  366.             justCenter, "A static string" };
  367.  
  368.         'DLOG', noID, { 620, 140 }, { 22, 100 }, sizeFixed, sizeFixed, shown, enabled,
  369.         EditText {
  370.             "",
  371.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  372.                 {3, 3, 3, 3}, applFont12,
  373.             justRight, "EditText",
  374.             255, ArrowsAndBackspace }
  375.     }
  376. };
  377.  
  378. /*    The popup example is separate from the rest of the views so that we avoid        */
  379. /*    creating it if the machine doesn't support popup menus.                            */
  380.  
  381. resource 'view' (cPopupExample, purgeable) {
  382.     {
  383.         root, noID, { 589, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  384.         Popup {
  385.             "",
  386.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  387.                 noInset, systemFont,
  388.             kTestPopup, 2, 50 },
  389.         root, noID, { 624, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  390.         Popup {
  391.             "",
  392.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  393.                 noInset, systemFont,
  394.             kBaudPopup, 1, 50 },
  395.         root, noID, { 659, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  396.         Popup {
  397.             "",
  398.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  399.                 noInset, systemFont,
  400.             kParityPopup, 1, 50 }
  401.     }
  402. };
  403.  
  404. /************************************************************************************/
  405. /*    Scrolling test dialog                                                            */
  406. /************************************************************************************/
  407. resource 'view' (cScrollingTest, purgeable) {
  408.     {
  409.         root, 'WIND', { 50, 20 }, { 260, 431 }, sizeVariable, sizeVariable, shown, enabled,
  410.         Window {
  411.             "",
  412.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  413.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  414.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, noId,
  415.                 "Side-by-Side Scrolling" };
  416.  
  417.         'WIND', 'SCL1',    { 0, 0 }, { 260-kSBarSizeMinus1, 215-kSBarSizeMinus1 },
  418.         sizeRelSuperView, sizeFixed, shown, disabled,
  419.         Scroller {
  420.             "",
  421.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  422.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  423.  
  424.         'SCL1', noId, { 0, 0 }, { 160000, 1000 },
  425.         sizeFixed, sizeFixed, shown, enabled,
  426.         View { "TNumbersView" };
  427.  
  428.         'WIND', 'SCL2',    { 0 , 216 }, { 260-kSBarSizeMinus1, 215-kSBarSizeMinus1 },
  429.         sizeRelSuperView, sizeRelSuperView, shown, disabled,
  430.         Scroller {
  431.             "",
  432.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  433.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  434.  
  435.         'SCL2', noId, { 0, 0 }, { 160000, 1000 },
  436.         sizeFixed, sizeFixed, shown, enabled,
  437.         View { "TNumbersView"  }
  438.     }
  439. };
  440.  
  441.  
  442.  
  443. /************************************************************************************/
  444. /*    Monthly values dialog                                                            */
  445. /************************************************************************************/
  446. resource 'view' (cMonthlyDialog, purgeable) {
  447.     {
  448.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  449.         Window {
  450.             "",
  451.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  452.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  453.                 AdaptToScreen, stagger, forceOnScreen, dontCenter, 'jan ',
  454.                 "Monthly Values" };
  455.  
  456.         'WIND', 'SCLR',    { 0, 0 }, { 260-kSBarSizeMinus1, 430-kSBarSizeMinus1 },
  457.         sizeRelSuperView, sizeRelSuperView, shown, enabled,
  458.         Scroller {
  459.             "",
  460.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  461.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  462.  
  463.         'SCLR', 'DLOG',    { 0, 0 }, { 1000, 600 }, sizeFixed, sizeFixed, shown, enabled,
  464.         DialogView {
  465.             "TMonthlyDialog",
  466.                 noID, noID };
  467.  
  468.         'DLOG', noID, { 10, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  469.         StaticText {
  470.             "",
  471.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  472.                 noInset, systemFont,
  473.             justSystem, "January" };
  474.  
  475.         'DLOG', 'jan ', { 9, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  476.         NumberText {
  477.             "",
  478.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  479.                 stdInset, applFont12,
  480.             justRight, "",
  481.             5, arrowsAndBackspace,
  482.             0, 0, 32767 };
  483.  
  484.         'DLOG', noID, { 40, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  485.         StaticText {
  486.             "",
  487.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  488.                 noInset, systemFont,
  489.             justSystem, "February" };
  490.  
  491.         'DLOG', 'feb ', { 39, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  492.         NumberText {
  493.             "",
  494.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  495.                 stdInset, applFont12,
  496.             justRight, "",
  497.             5, arrowsAndBackspace,
  498.             0, 0, 32767 };
  499.  
  500.         'DLOG', noID, { 70, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  501.         StaticText {
  502.             "",
  503.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  504.                 noInset, systemFont, justSystem, "March" };
  505.  
  506.         'DLOG', 'mar ', { 69, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  507.         NumberText {
  508.             "",
  509.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  510.                 stdInset, applFont12,
  511.             justRight, "",
  512.             5, arrowsAndBackspace,
  513.             0, 0, 32767 };
  514.  
  515.         'DLOG', noID, { 100, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  516.         StaticText {
  517.             "",
  518.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  519.                 noInset, systemFont,
  520.             justSystem, "April" };
  521.  
  522.         'DLOG', 'apr ', { 99, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  523.         NumberText {
  524.             "",
  525.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  526.                 stdInset, applFont12,
  527.             justRight, "",
  528.             5, arrowsAndBackspace,
  529.             0, 0, 32767 };
  530.  
  531.         'DLOG', noID, { 130, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  532.         StaticText {
  533.             "",
  534.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  535.                 noInset, systemFont,
  536.             justSystem, "May" };
  537.  
  538.         'DLOG', 'may ', { 129, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  539.         NumberText {
  540.             "",
  541.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  542.                 stdInset, applFont12,
  543.             justRight, "",
  544.             5, arrowsAndBackspace,
  545.             0, 0, 32767 };
  546.  
  547.         'DLOG', noID, { 160, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  548.         StaticText {
  549.             "",
  550.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  551.                 noInset, systemFont,
  552.             justSystem, "June" };
  553.  
  554.         'DLOG', 'jun ', { 159, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  555.         NumberText {
  556.             "",
  557.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  558.                 stdInset, applFont12,
  559.             justRight, "",
  560.             5, arrowsAndBackspace,
  561.             0, 0, 32767 };
  562.  
  563.         'DLOG', noID, { 190, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  564.         StaticText {
  565.             "",
  566.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  567.                 noInset, systemFont,
  568.             justSystem, "July" };
  569.  
  570.         'DLOG', 'jul ', { 189, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  571.         NumberText {
  572.             "",
  573.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  574.                 stdInset, applFont12,
  575.             justRight, "",
  576.             5, arrowsAndBackspace,
  577.             0, 0, 32767 };
  578.  
  579.         'DLOG', noID, { 220, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  580.         StaticText {
  581.             "",
  582.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  583.                 noInset, systemFont,
  584.             justSystem, "August" };
  585.  
  586.         'DLOG', 'aug ', { 219, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  587.         NumberText {
  588.             "",
  589.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  590.                 stdInset, applFont12,
  591.             justRight, "",
  592.             5, arrowsAndBackspace,
  593.             0, 0, 32767 };
  594.  
  595.         'DLOG', noID, { 250, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  596.         StaticText {
  597.             "",
  598.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  599.                 noInset, systemFont,
  600.             justSystem, "September" };
  601.  
  602.         'DLOG', 'sep ', { 249, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  603.         NumberText {
  604.             "",
  605.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  606.                 stdInset, applFont12,
  607.             justRight, "",
  608.             5, arrowsAndBackspace,
  609.             0, 0, 32767 };
  610.  
  611.         'DLOG', noID, { 280, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  612.         StaticText {
  613.             "",
  614.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  615.                 noInset, systemFont,
  616.             justSystem, "October" };
  617.  
  618.         'DLOG', 'oct ', { 279, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  619.         NumberText {
  620.             "",
  621.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  622.                 stdInset, applFont12,
  623.             justRight, "",
  624.             5, arrowsAndBackspace,
  625.             0, 0, 32767 };
  626.  
  627.         'DLOG', noID, { 310, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  628.         StaticText {
  629.             "",
  630.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  631.                 noInset, systemFont,
  632.             justSystem, "November" };
  633.  
  634.         'DLOG', 'nov ', { 309, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  635.         NumberText {
  636.             "",
  637.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  638.                 stdInset, applFont12,
  639.             justRight, "",
  640.             5, arrowsAndBackspace,
  641.             0, 0, 32767 };
  642.  
  643.         'DLOG', noID, { 340, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  644.         StaticText {
  645.             "",
  646.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  647.                 noInset, systemFont,
  648.             justSystem, "December" };
  649.  
  650.         'DLOG', 'dec ', { 339, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  651.         NumberText {
  652.             "",
  653.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  654.                 stdInset, applFont12,
  655.             justRight, "",
  656.             5, arrowsAndBackspace,
  657.             0, 0, 32767 };
  658.  
  659.         'DLOG', 'graf', { 25, 300 }, { 300, 300 }, sizeFixed, sizeFixed, shown, disabled,
  660.         View { "TGraph" }
  661.     }
  662. };
  663.  
  664.  
  665. /************************************************************************************/
  666. /*    The "Save" dialog                                                                */
  667. /************************************************************************************/
  668. resource 'view' (cSaveDialog, purgeable) {
  669.     {
  670.         root, 'WIND', { 100, 110 }, { 120, 292 }, sizeVariable, sizeVariable, shown, enabled,
  671.         Window {
  672.             "",
  673.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  674.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  675.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally,
  676.                 'DLOG', "Save Dialog" };
  677.  
  678.         'WIND', 'DLOG',    { 0, 0 }, { 120, 292 }, sizeFixed, sizeFixed, shown, enabled,
  679.         DialogView {
  680.             "",
  681.                 'yes ', 'cncl' };
  682.  
  683.         'DLOG', 'yes ',    { 56, 23 }, { 26, 82 }, sizeFixed, sizeFixed, shown, enabled,
  684.         Button {
  685.             "",
  686.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  687.                 { 4, 4, 4, 4 }, systemFont,
  688.             "Yes" };
  689.  
  690.         'DLOG', 'no  ',    { 86, 195 }, { 18, 74 }, sizeFixed, sizeFixed, shown, enabled,
  691.         Button {
  692.             "",
  693.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  694.                 noInset, systemFont,
  695.             "No" };
  696.  
  697.         'DLOG', 'cncl',    { 86, 25 }, { 18, 74 }, sizeFixed, sizeFixed, shown, enabled,
  698.         Button {
  699.             "",
  700.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  701.                 noInset, systemFont,
  702.             "Cancel" };
  703.  
  704.         'DLOG', noID, { 12, 20 }, { 33, 257 }, sizeFixed, sizeFixed, shown, disabled,
  705.         StaticText {
  706.             "",
  707.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  708.                 noInset, systemFont,
  709.             justSystem, "Save changes to Untitled-1 before closing?" }
  710.     }
  711. };
  712.  
  713.  
  714. /************************************************************************************/
  715. /*    The "Mark" Dialog                                                                */
  716. /************************************************************************************/
  717. resource 'view' (cMarkDialog, purgeable) {
  718.     {
  719.         root, 'WIND', { 72, 64 }, { 92, 364 }, sizeVariable, sizeVariable, shown, enabled,
  720.         Window {
  721.             "",
  722.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  723.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  724.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'mark',
  725.                 "Mark Dialog" };
  726.  
  727.         'WIND', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  728.         DialogView {
  729.             "",
  730.                 'ok  ', 'cncl' };
  731.  
  732.         'DLOG', 'ok  ',    { 60, 48 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  733.         Button {
  734.             "",
  735.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  736.                 { 4, 4, 4, 4 }, systemFont,
  737.             "OK" };
  738.  
  739.         'DLOG', 'cncl',    { 64, 231 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  740.         Button {
  741.             "",
  742.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  743.                 noInset, systemFont,
  744.             "Cancel" };
  745.  
  746.         'DLOG', noID, { 8, 8 }, { 16, 344 }, sizeFixed, sizeFixed, shown, disabled,
  747.         StaticText {
  748.             "",
  749.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  750.                 noInset, systemFont,
  751.             justSystem, "Mark the selection with what name?" };
  752.  
  753.         'DLOG', 'mark', { 29, 7 }, { 22, 346 }, sizeFixed, sizeFixed, shown, enabled,
  754.         EditText {
  755.             "",
  756.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  757.                 stdInset, systemFont,
  758.             justSystem, "",
  759.             255, arrowsAndBackspace }
  760.     }
  761. };
  762.  
  763. /************************************************************************************/
  764. /*    The Modeless "Mark" Dialog                                                        */
  765. /************************************************************************************/
  766. resource 'view' (cModelessMarkDialog, purgeable) {
  767.     {
  768.         root, 'WIND', { 72, 64 }, { 92, 364 }, sizeVariable, sizeVariable, shown, enabled,
  769.         Window {
  770.             "",
  771.                 documentProc, goAwayBox, notResizable, modeless, ignoreFirstClick,
  772.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  773.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'mark',
  774.                 "Modeless Mark Dialog" };
  775.  
  776.         'WIND', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  777.         DialogView {
  778.             "TModelessMarkDialog",
  779.                 'ok  ', 'cncl' };
  780.  
  781.         'DLOG', 'ok  ',    { 60, 48 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  782.         Button {
  783.             "",
  784.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  785.                 { 4, 4, 4, 4 }, systemFont,
  786.             "OK" };
  787.  
  788.         'DLOG', 'cncl',    { 64, 231 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  789.         Button {
  790.             "",
  791.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  792.                 noInset, systemFont,
  793.             "Cancel" };
  794.  
  795.         'DLOG', noID, { 8, 8 }, { 16, 344 }, sizeFixed, sizeFixed, shown, disabled,
  796.         StaticText {
  797.             "",
  798.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  799.                 noInset, systemFont,
  800.             justSystem, "Mark the selection with what name?" };
  801.  
  802.         'DLOG', 'mark', { 29, 7 }, { 22, 346 }, sizeFixed, sizeFixed, shown, enabled,
  803.         EditText {
  804.             "",
  805.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  806.                 stdInset, systemFont,
  807.             justSystem, "",
  808.             255, arrowsAndBackspace }
  809.     }
  810. };
  811.  
  812. /************************************************************************************/
  813. /*    ImageWriter Page Setup Dialog                                                    */
  814. /************************************************************************************/
  815. resource 'view' (cPageSetupDialog, purgeable) {
  816.     {
  817.         root, 'WIND', { 30, 20 }, { 144, 472 }, sizeVariable, sizeVariable, shown, enabled,
  818.         Window {
  819.             "",
  820.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  821.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  822.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'DLOG',
  823.                 "Page Setup Dialog" };
  824.  
  825.         'WIND', 'DLOG',    { 0, 0 }, { 144, 472 }, sizeFixed, sizeFixed, shown, enabled,
  826.         DialogView {
  827.             "TPageSetupDialog",
  828.                 'ok  ', 'cncl' };
  829.  
  830.         'DLOG', 'ok  ',    { 0, 396 }, { 28, 68 }, sizeFixed, sizeFixed, shown, enabled,
  831.         Button {
  832.             "",
  833.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  834.                 { 4, 4, 4, 4 }, systemFont,
  835.             "OK" };
  836.  
  837.         'DLOG', 'cncl',    { 40, 400 }, { 20, 60 }, sizeFixed, sizeFixed, shown, enabled,
  838.         Button {
  839.             "",
  840.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  841.                 noInset, systemFont,
  842.             "Cancel" };
  843.  
  844.         'DLOG', noID, { 4, 4 }, { 16, 380 }, sizeFixed, sizeFixed, shown, disabled,
  845.         StaticText {
  846.             "",
  847.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  848.                 noInset, systemFont,
  849.             justSystem, "ImageWriter" };
  850.  
  851.         'DLOG', noID, { 20, 4 }, { 3, 380 }, sizeFixed, sizeFixed, shown, disabled,
  852.         Control {
  853.             "",
  854.                 adnLineTop+adnLineBottom, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  855.                 noInset, systemFont };
  856.  
  857.         'DLOG', noID, { 8, 300 }, { 12, 384-300 }, sizeFixed, sizeFixed, shown, disabled,
  858.         StaticText {
  859.             "",
  860.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  861.                 noInset, applFont9,
  862.             justRight, "MacApp 2.0" };
  863.  
  864.         'DLOG', noID, { 24, 4 }, { 16, 58 }, sizeFixed, sizeFixed, shown, disabled,
  865.         StaticText {
  866.             "",
  867.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  868.                 noInset, systemFont,
  869.             justSystem, "Paper:" };
  870.  
  871.         'DLOG', 'papC', { 24, 68 }, { 46, 320 }, sizeFixed, sizeFixed, shown, disabled,
  872.         Cluster {
  873.             "",
  874.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  875.                 noInset, systemFont,
  876.             "" };
  877.  
  878.         'papC', 'pap1', { 0, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  879.         Radio {
  880.             "",
  881.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  882.                 noInset, systemFont,
  883.             on, "US Letter" };
  884.  
  885.         'papC', 'pap2', { 0, 150 }, { 16, 165 }, sizeFixed, sizeFixed, shown, enabled,
  886.         Radio {
  887.             "",
  888.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  889.                 noInset, systemFont,
  890.             off, "A4 Letter" };
  891.  
  892.         'papC', 'pap3', { 15, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  893.         Radio {
  894.             "",
  895.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  896.                 noInset, systemFont,
  897.             off, "US Legal" };
  898.  
  899.         'papC', 'pap4', { 15, 150 }, { 16, 165 }, sizeFixed, sizeFixed, shown, enabled,
  900.         Radio {
  901.             "",
  902.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  903.                 noInset, systemFont,
  904.             off, "International Fanfold" };
  905.  
  906.         'papC', 'pap5', { 30, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  907.         Radio {
  908.             "",
  909.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  910.                 noInset, systemFont,
  911.             off, "Computer Paper" };
  912.  
  913.         'papC', 'pap6', { 30, 150 }, { 16, 165 }, sizeFixed, sizeFixed, notShown, disabled,
  914.         Radio {
  915.             "",
  916.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  917.                 noInset, systemFont,
  918.             off, "Invisible" };
  919.  
  920.         'DLOG', noID, { 74, 4 }, { 16, 84 }, sizeFixed, sizeFixed, shown, disabled,
  921.         StaticText {
  922.             "",
  923.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  924.                 noInset, systemFont,
  925.             justSystem, "Orientation" };
  926.  
  927.         'DLOG', 'vert', { 93, 5 }, { 32, 32 }, sizeFixed, sizeFixed, shown, enabled,
  928.         Icon {
  929.             "TRadioIcon",
  930.                 noAdornment, sizeable, notDimmed, hilited, doesntDismiss,
  931.                 noInset, systemFont,
  932.             dontPreferColor, 10060 };
  933.  
  934.         'DLOG', 'horz', { 93, 45 }, { 32, 32 }, sizeFixed, sizeFixed, shown, enabled,
  935.         Icon {
  936.             "TRadioIcon",
  937.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  938.                 noInset, systemFont,
  939.             dontPreferColor, 10061 };
  940.  
  941.         'DLOG', noID, { 74, 106 }, { 16, 113 }, sizeFixed, sizeFixed, shown, disabled,
  942.         StaticText {
  943.             "",
  944.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  945.                 noInset, systemFont,
  946.             justSystem, "Special Effects:" };
  947.  
  948.         'DLOG', 'tall', { 74, 220 }, { 16, 108 }, sizeFixed, sizeFixed, shown, enabled,
  949.         CheckBox {
  950.             "",
  951.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  952.                 noInset, systemFont,
  953.             off, "Tall Adjusted" };
  954.  
  955.         'DLOG', 'red ', { 89, 220 }, { 16, 122 }, sizeFixed, sizeFixed, shown, enabled,
  956.         CheckBox {
  957.             "",
  958.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  959.                 noInset, systemFont,
  960.             off, "50 % Reduction" };
  961.  
  962.         'DLOG', 'gap ', { 104, 220 }, { 16, 181 }, sizeFixed, sizeFixed, shown, enabled,
  963.         CheckBox {
  964.             "",
  965.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  966.                 noInset, systemFont,
  967.             off, "No Gap Between Pages" }
  968.     }
  969. };
  970.  
  971. /************************************************************************************/
  972. /*    Format Dialog                                                                    */
  973. /************************************************************************************/
  974. resource 'view' (cFormatDialog, purgeable) {
  975.     {
  976.         root, 'WIND', { 68, 52 }, { 245-68, 435-52 }, sizeFixed, sizeFixed, shown, enabled,
  977.         Window {
  978.             "",
  979.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  980.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  981.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'size',
  982.                 "Format Dialog" };
  983.  
  984.         'WIND', 'DLOG',    { 0, 0 }, { 245-68, 435-52 }, sizeSuperView, sizeSuperView, shown, enabled,
  985.         DialogView {
  986.             "",
  987.                 'ok  ', 'cncl' };
  988.  
  989.         'DLOG', 'ok  ',    { 100, 264 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  990.         Button {
  991.             "",
  992.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  993.                 { 4, 4, 4, 4 }, systemFont,
  994.             "OK" };
  995.  
  996.         'DLOG', 'cncl',    { 135, 268 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  997.         Button {
  998.             "",
  999.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  1000.                 noInset, systemFont,
  1001.             "Cancel" };
  1002.  
  1003.         'DLOG', noID, { 68, 253 }, { 17, 38 }, sizeFixed, sizeFixed, shown, disabled,
  1004.         StaticText {
  1005.             "",
  1006.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1007.                 noInset, systemFont,
  1008.             justSystem, "Tabs:" };
  1009.  
  1010.         'DLOG', 'tabs', { 65, 295 }, { 22, 37 }, sizeFixed, sizeFixed, shown, enabled,
  1011.         NumberText {
  1012.             "",
  1013.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1014.                 stdInset, systemFont,
  1015.             justSystem, "", 255, arrowsAndBackspace, 4, 0, 99 };
  1016.  
  1017.         'DLOG', 'inv ', { 42, 245 }, { 20, 127 }, sizeFixed, sizeFixed, shown, enabled,
  1018.         CheckBox {
  1019.             "",
  1020.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1021.                 noInset, systemFont,
  1022.             off, "Show Invisibles" };
  1023.  
  1024.         'DLOG', 'auto', { 25, 245 }, { 18, 123 }, sizeFixed, sizeFixed, shown, enabled,
  1025.         CheckBox {
  1026.             "",
  1027.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1028.                 noInset, systemFont,
  1029.             on, "Auto Indent" };
  1030.  
  1031.         'DLOG', noID, { 7, 15 }, { 18, 38 }, sizeFixed, sizeFixed, shown, disabled,
  1032.         StaticText {
  1033.             "",
  1034.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1035.                 noInset, systemFont,
  1036.             justSystem, "Font" };
  1037.  
  1038.         'DLOG', noID, { 7, 184 }, { 18, 33 }, sizeFixed, sizeFixed, shown, disabled,
  1039.         StaticText {
  1040.             "",
  1041.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1042.                 noInset, systemFont,
  1043.             justSystem, "Size" };
  1044.  
  1045.         'DLOG', 'size', { 27, 180 }, { 22, 40 }, sizeFixed, sizeFixed, shown, enabled,
  1046.         NumberText {
  1047.             "",
  1048.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1049.                 stdInset, systemFont,
  1050.             justSystem, "", 255, arrowsAndBackspace, 9, 0, 255 };
  1051.  
  1052.         'DLOG', noID, { 28, 11 }, { 130, 159 }, sizeFixed, sizeFixed, shown, disabled,
  1053.         Control {
  1054.             "",
  1055.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss, noInset, systemFont };
  1056.  
  1057.         'DLOG', 'SCL1',    { 29, 12 }, { 128, 142 },
  1058.         sizeFixed, sizeFixed, shown, enabled,
  1059.         Scroller {
  1060.             "",
  1061.                 vertScrollBar, noHorzScrollBar, 0, 0, 16, 16,
  1062.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  1063.  
  1064.         'SCL1', 'flst', { 0, 0 }, { 0, 142 },
  1065.         sizeVariable, sizeFixed, shown, enabled,
  1066.         TextListView {
  1067.             "TFontListView",
  1068.                 0, 1, 16, 142, 0, 6, dontAdornRows, dontAdornCols, singleSelection, systemFont };
  1069.  
  1070.         'DLOG', noID, { 60, 180 }, { 98, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1071.         Control {
  1072.             "",
  1073.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss, noInset, systemFont };
  1074.  
  1075.         'DLOG', 'SCL2',    { 61, 181 }, { 96, 23 },
  1076.         sizeFixed, sizeFixed, shown, enabled,
  1077.         Scroller {
  1078.             "",
  1079.                 vertScrollBar, noHorzScrollBar, 0, 0, 16, 16,
  1080.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  1081.  
  1082.         'SCL2', 'slst', { 0, 0 }, { 0, 23 },
  1083.         sizeVariable, sizeFixed, shown, enabled,
  1084.         TextListView {
  1085.             "TSizeListView",
  1086.                 0, 1, 16, 23, 0, 6, dontAdornRows, dontAdornCols, singleSelection, systemFont };
  1087.  
  1088.         'DLOG', noID, { 28, 233 }, { 128, 1 }, sizeFixed, sizeFixed, shown, disabled,
  1089.         Control {
  1090.             "",
  1091.                 adnLineLeft, { 1, 1 }, sizeable, dimmed, notHilited, doesntDismiss, noInset, systemFont }
  1092.     }
  1093. };
  1094.  
  1095. /************************************************************************************/
  1096. /*    Homebrew Controls Dialog                                                        */
  1097. /************************************************************************************/
  1098. resource 'view' (cHomeBrewControls, purgeable) {
  1099.     {
  1100.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  1101.         Window {
  1102.             "",
  1103.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  1104.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1105.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, noID,
  1106.                 "Home Brew Controls" };
  1107.  
  1108.         'WIND', 'DLOG',    { 0, 0 }, { 240, 430 }, sizeSuperView, sizeSuperView, shown, enabled,
  1109.         DialogView {
  1110.             "THomeBrewDialog",
  1111.                 noID, noID };
  1112.  
  1113.         'DLOG', 'Conv', {100, 20}, { 90, 236 }, sizeFixed, sizeFixed, shown, disabled,
  1114.         Cluster {
  1115.             "TTemperatureConversionCluster",
  1116.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1117.                 noInset, systemFont,
  1118.             "Temperature Conversion" };
  1119.  
  1120.         'Conv', 'Cels', {20, 16}, { 60, 100 }, sizeFixed, sizeFixed, shown, disabled,
  1121.         Cluster {
  1122.             "TTemperatureCluster",
  1123.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1124.                 noInset, systemFont,
  1125.             "Celsius" };
  1126.  
  1127.  
  1128.         'Cels', 'arws', {30, 60}, {18, 11}, sizeFixed, sizeFixed, shown, enabled,
  1129.         Picture {
  1130.             "TArrowsControl",
  1131.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1132.                 noInset, systemFont,
  1133.             1001 };
  1134.  
  1135.         'Cels', 'Numb', { 30, 10 }, { 22, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1136.         NumberText {
  1137.             "",
  1138.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  1139.                 {2, 2, 2, 2}, applFont12,
  1140.             justRight, "",
  1141.             255, ArrowsAndBackspace,
  1142.             0, -40, 105 };
  1143.  
  1144.         'Conv', 'Fahr', {20, 120}, { 60, 100 }, sizeFixed, sizeFixed, shown, disabled,
  1145.         Cluster {
  1146.             "TTemperatureCluster",
  1147.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1148.                 noInset, systemFont,
  1149.             "Fahrenheit" };
  1150.  
  1151.         'Fahr', 'arws', {30, 60}, {18, 11}, sizeFixed, sizeFixed, shown, enabled,
  1152.         Picture {
  1153.             "TArrowsControl",
  1154.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1155.                 noInset, systemFont,
  1156.             1001 };
  1157.  
  1158.         'Fahr', 'Numb', { 30, 10 }, { 22, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1159.         NumberText {
  1160.             "",
  1161.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  1162.                 {2, 2, 2, 2}, applFont12,
  1163.             justRight, "",
  1164.             255, ArrowsAndBackspace,
  1165.             32, -40, 220 };
  1166.  
  1167.         'DLOG', 'sldr', {100, 300}, {106, 35}, sizeFixed, sizeFixed, shown, enabled,
  1168.         Picture {
  1169.             "TSlider",
  1170.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1171.                 noInset, systemFont,
  1172.             1003 };
  1173.  
  1174.         'DLOG', 'sbar', { 20, 50 }, { 16, 300 }, sizeVariable, sizeVariable, shown, enabled,
  1175.         ScrollBar {
  1176.             "TScrollBar",
  1177.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1178.                 noInset, systemFont, 0, -1000, 1000 };
  1179.     }
  1180. };
  1181.  
  1182.  
  1183. /************************************************************************************/
  1184. /*    Cluster Tabbing Test Dialog                                                        */
  1185. /************************************************************************************/
  1186. resource 'view' (cTabbingTest, purgeable) {
  1187.     {
  1188.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  1189.         Window {
  1190.             "",
  1191.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  1192.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1193.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'edt1',
  1194.                 "Tabbing Test" };
  1195.  
  1196.         'WIND', 'DLOG',    { 0, 0 }, { 240, 430 }, sizeSuperView, sizeSuperView, shown, enabled,
  1197.         DialogView {
  1198.             "",
  1199.                 noId, noID };
  1200.  
  1201.         'DLOG', noID, { 10, 0 }, { 16, 430 }, sizeFixed, sizeFixed, shown, disabled,
  1202.         StaticText {
  1203.             "",
  1204.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1205.                 noInset, applFont12,
  1206.             justCenter, "This dialog demonstrates tabbing" };
  1207.  
  1208.         'DLOG', 'edt1', { 40, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1209.         EditText {
  1210.             "",
  1211.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1212.                 stdInset, systemFont,
  1213.             justSystem, "one",
  1214.             255, arrowsAndBackspace };
  1215.  
  1216.         'DLOG', 'edt2', { 70, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1217.         EditText {
  1218.             "",
  1219.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1220.                 stdInset, systemFont,
  1221.             justSystem, "two",
  1222.             255, arrowsAndBackspace };
  1223.  
  1224.         'DLOG', 'cls1', { 100, 10 }, { 110, 190 }, sizeFixed, sizeFixed, shown, disabled,
  1225.         Cluster {
  1226.             "",
  1227.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1228.                 noInset, systemFont,
  1229.             "Cluster One" };
  1230.  
  1231.         'cls1', 'edt3', { 30, 10 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1232.         EditText {
  1233.             "",
  1234.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1235.                 stdInset, systemFont,
  1236.             justSystem, "three",
  1237.             255, arrowsAndBackspace };
  1238.  
  1239.         'cls1', 'edt4', { 70, 10 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1240.         EditText {
  1241.             "",
  1242.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1243.                 stdInset, systemFont,
  1244.             justRight, "four",
  1245.             255, arrowsAndBackspace };
  1246.  
  1247.         'DLOG', 'cls2', { 30, 210 }, { 200, 190 }, sizeFixed, sizeFixed, shown, disabled,
  1248.         Cluster {
  1249.             "",
  1250.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1251.                 noInset, systemFont,
  1252.             "Cluster Two" };
  1253.  
  1254.         'cls2', 'edt5', { 30, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1255.         EditText {
  1256.             "",
  1257.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1258.                 stdInset, systemFont,
  1259.             justCenter, "five",
  1260.             255, arrowsAndBackspace };
  1261.  
  1262.         'cls2', 'edt6', { 70, 20 }, { 100, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1263.         EditText {
  1264.             "",
  1265.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1266.                 stdInset, systemFont,
  1267.             justSystem, "six",
  1268.             255, arrowsAndBackspace | carriageReturn }
  1269.  
  1270.     }
  1271. };
  1272.  
  1273.  
  1274. /************************************************************************************/
  1275. /*    Calculator clone dialog                                                            */
  1276. /************************************************************************************/
  1277. #define monaco9        plain,  9, {0, 0, 0}, "monaco"
  1278.  
  1279. resource 'view' (cCalculator, purgeable) {
  1280.     {
  1281.         root, 'WIND', { 60, 60 }, { 154, 112 }, sizeVariable, sizeVariable, shown, enabled,
  1282.         Window {
  1283.             "",
  1284.                 rDocProc, goAwayBox, notResizable, modeless, ignoreFirstClick,
  1285.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1286.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'DLOG',
  1287.                 "Calculator" };
  1288.  
  1289.         'WIND', 'DLOG',    { 0, 0 }, { 154, 112 }, sizeSuperView, sizeSuperView, shown, disabled,
  1290.         Picture {
  1291.             "TCalcDialog",
  1292.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1293.                 noInset, systemFont,
  1294.             kCalcPicture };
  1295.  
  1296.         'DLOG', noID, { 6, 12 }, { 14, 88 }, sizeFixed, sizeFixed, shown, disabled,
  1297.         StaticText {
  1298.             "",
  1299.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1300.                 noInset, bold+italic+condense, 9, { 0xFFFF, 0, 0 }, "monaco",
  1301.             justSystem, "MacApp®-ulator" };
  1302.  
  1303.         'DLOG', 'SUMM', { 26, 12 }, { 18, 88 }, sizeFixed, sizeFixed, shown, disabled,
  1304.         StaticText {
  1305.             "TSumStaticText",
  1306.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1307.                 { 2, 2, 2, 2 }, monaco9,
  1308.             justRight, "0" };
  1309.  
  1310.         'DLOG', 'keyC', { 50, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1311.         Control {
  1312.             "",
  1313.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1314.  
  1315.         'DLOG', 'key=', { 50, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1316.         Control {
  1317.             "",
  1318.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1319.  
  1320.         'DLOG', 'key/', { 50, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1321.         Control {
  1322.             "",
  1323.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1324.  
  1325.         'DLOG', 'key*', { 50, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1326.         Control {
  1327.             "",
  1328.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1329.  
  1330.         'DLOG', 'key7', { 70, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1331.         Control {
  1332.             "",
  1333.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1334.  
  1335.         'DLOG', 'key8', { 70, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1336.         Control {
  1337.             "",
  1338.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1339.  
  1340.         'DLOG', 'key9', { 70, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1341.         Control {
  1342.             "",
  1343.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1344.  
  1345.         'DLOG', 'key-', { 70, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1346.         Control {
  1347.             "",
  1348.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1349.  
  1350.         'DLOG', 'key4', { 90, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1351.         Control {
  1352.             "",
  1353.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1354.  
  1355.         'DLOG', 'key5', { 90, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1356.         Control {
  1357.             "",
  1358.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1359.  
  1360.         'DLOG', 'key6', { 90, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1361.         Control {
  1362.             "",
  1363.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1364.  
  1365.         'DLOG', 'key+', { 90, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1366.         Control {
  1367.             "",
  1368.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1369.  
  1370.         'DLOG', 'key1', { 110, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1371.         Control {
  1372.             "",
  1373.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1374.  
  1375.         'DLOG', 'key2', { 110, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1376.         Control {
  1377.             "",
  1378.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1379.  
  1380.         'DLOG', 'key3', { 110, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1381.         Control {
  1382.             "",
  1383.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1384.  
  1385.         'DLOG', 'keyE', { 110, 80 }, { 36, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1386.         Control {
  1387.             "",
  1388.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1389.  
  1390.         'DLOG', 'key0', { 130, 14 }, { 16, 41 }, sizeFixed, sizeFixed, shown, enabled,
  1391.         Control {
  1392.             "",
  1393.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1394.  
  1395.         'DLOG', 'key.', { 130, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1396.         Control {
  1397.             "",
  1398.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 }
  1399.     }
  1400. };
  1401.  
  1402. type 'SS11' as 'STR ';
  1403. resource 'SS11' (0,
  1404. #if qNames
  1405. "Signature",
  1406. #endif
  1407.     purgeable) {
  1408.     "Application created by MacApp®"
  1409. };
  1410.  
  1411. resource 'BNDL' (128,
  1412. #if qNames
  1413. "Bundle",
  1414. #endif
  1415.     purgeable) {
  1416.     'SS11',
  1417.     0,
  1418.         {
  1419.         'ICN#',
  1420.             {
  1421.             0, 128,
  1422.             },
  1423.         'FREF',
  1424.             {
  1425.             0, 128,
  1426.             }
  1427.         }
  1428. };
  1429.  
  1430. include "Defaults.rsrc"  'STR#' (kDefaultCredits);        // Grab the default credits
  1431.  
  1432. // Get the default MacApp® application icon and necessary bundling rsrcs
  1433. include "Defaults.rsrc"  'FREF' (128);
  1434. include "Defaults.rsrc"  'ICN#' (128);
  1435.  
  1436. // Get the default Version resources
  1437. include "Defaults.rsrc"  'vers' (1);        // Application or file specific
  1438. include "Defaults.rsrc"  'vers' (2);        // Overall package
  1439.